package com.project.seckill.constant;

/**
 * Created by yachao on 2018/6/24.
 */
public enum CodeMessage {
    SUCCESS(200, "success."),
    SERVER_ERROR(500100, "server error!"),
    TELEPHONE_OR_PASSWORD_ERROR(500101, "Telephone or password error!");

    private int code;
    private String message;

    private CodeMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
